package com.warski.wonderfires.page.device;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import com.warski.wonderfires.R;
import com.warski.wonderfires.view.TitleBarView;

public class DeviceFragment extends Fragment {

    public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_music, container, false);

        initTitleBar(root);

        return root;
    }

    private void initTitleBar(View root) {
        final TitleBarView titleBarView = root.findViewById(R.id.titlebar);

        /*titleBarView.setRightIconOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                DeviceFragmentDirections.ActionDeviceFragmentToSearchDeviceFragment action =
                        DeviceFragmentDirections.actionDeviceFragmentToSearchDeviceFragment("");
                NavHostFragment.findNavController(DeviceFragment.this).navigate(action);
            }
        });*/
    }
}
